package model;

/**
 * 
 * @author Patrick
 *
 */

public class Discount 
{
	private int id;
	private String type;
	private double amount; 
	private Sale sale;
	
	public Discount(int id, String type, double d)
	{
		this.id = id;
		this.type = type;
		this.amount = d;
	}
	
	public Sale getSale()
	{
		return sale;
	}
	
	public void setSale(Sale sale)
	{
		this.sale = sale;
	}

	public int getId() 
	{
		return id;
	}

	public void setId(int id) 
	{
		this.id = id;
	}

	public String getType() 
	{
		return type;
	}

	public void setType(String type) 
	{
		this.type = type;
	}

	public double getAmount() 
	{
		return amount;
	}

	public void setAmount(double result) 
	{
		this.amount = result;
	}
	
	
}
